package com.asj.enums;


import com.asj.service.control.ControlProgressBarService;

public enum ControlProgressBarEnum {
    start_connection(1,"正在与后台建立沟通～"),

    connection_success(2,"沟通成功～"),

    //绑定设备流程
    cancel_all_restrict(3,"确认设备不存在，取消所有监管项"),
    start_binding_device(4,"固定应用，开始绑定设备流程"),
    get_local_device_info(5,"获取设备信息"),
    send_binding_request(6,"发送绑定设备的请求"),
    back_ground_binding_success(7,"后台绑定设备成功"),
    restrict_software_success(8,"软件层面的限制成功"),
    restrict_system_success(9,"系统层面的限制成功"),
    transfer_app_to_back_ground(10,"正在将设备上的所有app传输给后台"),
    setting_app_install_listener(11,"设立应用装卸监听器"),
    binding_success(13,"绑定成功～！自动为您退出页面！～"),
    bind_step(13,"绑定总步数"),

    //设备已绑定流程
    device_is_binding(3,"设备已绑定过，开始检查各项监管项"),
    restrict_success(4,"监管项正常"),
    setting_insurance_success(5,"保险生效"),
    already_setting_app_install_listener(6,"设立应用装卸监听器"),
    already_setting_network_listener(7,"设立网络状态监听器"),
    check_device_status(8,"检验设备状态中"),
    check_device_status_success(9,"设备状态恢复正常！请上滑退出应用！"),
    already_bind_step(9,"已绑定过的总步数"),

    //取消监管步骤
    clearAllowedRunningApp(1,"清空应用启动名单"),
    clearDeviceOwner(2,"取消设置应用为 DeviceOwner"),
    setEmmAdmin(3,"取消应用拥有activeAdmin权限"),
    removePersistentApp(4,"删除常驻后台"),
    removeDisallowedUninstallPackages(5,"删除防卸载应用名单"),
    removeAppAlarmWhiteList(6,"清空允许应用启动运行名单"),
    enableAppInLauncherFLag(7,"恢复应用桌面显示"),
    enableAppInRecentTaskFlag(8,"恢复应用后台任务显示"),
    clearBlackList(9,"清空应用黑名单限制"),
    cancelSupervisionSuccess(10,"取消监管成功！即将自动为您退出程序！"),
    cancelSupervision_step(10,"取消监管的步骤"),
    ;

    ControlProgressBarEnum(int value, String message) {
        this.value = value;
        this.message = message;
    }

    public static void setValueAndMessage(ControlProgressBarEnum controlProgressBarEnum){
        ControlProgressBarService.setProgressBarAndListValue(controlProgressBarEnum.value,controlProgressBarEnum.message);
    }

    public int getValue() {
        return value;
    }

    private final int value;
    private final String message;
}
